using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Receipt
{
    public interface IReceivementAppService
    {
        Task<ReceivementDto> GetAsync(Guid id);
        Task<ReceivementLineDto> GetChildAsync(Guid id);
        Task<ReceivementDto> FindAsync(string filter);
        Task<ReceivementDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<ReceivementDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<ReceivementDto>> QueryAsync(FilterGroupRequestDto input);
        Task<PagedResultDto<ReceivementLineDto>> QueryChildrenAsync(FilterGroupRequestDto input);
        Task<ReceivementDto> CreateAsync(ReceivementCreateDto input);
        Task<ReceivementDto> UpdateAsync(Guid id, ReceivementUpdateDto input);
        Task<ReceivementDto> SubmitAsync(Guid id);
        Task<ReceivementDto> ApproveAsync(Guid id);
        Task<ReceivementDto> UnApproveAsync(Guid id);
        Task DeleteAsync(Guid id);
        Task<List<ReceivementDto>> BatchCreateAsync(List<ReceivementCreateDto> inputs, bool useBulk = false);
        Task<List<ReceivementDto>> BatchUpdateAsync(List<ReceivementBatchUpdateDto> inputs, bool useBulk = false);
        Task BatchDeleteAsync(List<Guid> ids, bool useBulk = false);
    }
}